package com.lucun.insurance.db.mapper;

import com.lucun.insurance.db.entity.Insure;
import com.lucun.insurance.db.entity.Settlement;
import com.lucun.insurance.service.SettlementService;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

public interface SettlementMapper {
    //    根据id删除理赔信息
    int deleteByPrimaryKey(Integer id);

    int insert(Settlement row);

    int insertSelective(Settlement row);

    Settlement selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Settlement row);

    int updateByPrimaryKey(Settlement row);
       // 查询全部理赔信息
    List<Settlement> findAll();
    //根据id查询
    List<Settlement> findById(Settlement id);
    //根据投保人（申请人）姓名查询理赔信息
    List<Settlement> findByName(Settlement settlement);

}